package day09.doublecolon;

public class Student {
    private String name;
    private Integer id;
    public Student(String name){
        this.name = name;
        this.id =(int) (Math.random()*10)+1;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", id=" + id +
                '}';
    }
}
